package com.lagou.rpc.consumer;

import com.lagou.rpc.consumer.zk.ZkUtil;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author lihongfeng
 * @date 2021/12/28
 */
@SpringBootApplication()
public class Application implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);

    }

    @Override
    public void run(String... args) {
        ZkUtil zkUtil = new ZkUtil();
        zkUtil.subscribeChildChanges();
    }
}
